<%@ page import="java.util.List" %>
<%@ page import="java.util.AbstractList" %>
<%@ page import="java.util.ArrayList" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>首页</title>
    <%@ include file="/basePath.jsp"%>
</head>
<body>
<h2>Hello World!</h2>
<%--<jsp:forward page="/list"></jsp:forward>--%>
<a href="list">list</a>
<% List<Integer> list=new ArrayList<Integer>();
list.add(1);
    list.add(2);
    list.add(3);
    request.setAttribute("list",list);%>
<c:forEach begin="0" end="4" var="i">
<%--       items=${requestScope.list[i]}  <br>--%>
    <c:if test="${requestScope.list[i]!=null}">
        ${"djd"}
    </c:if>
</c:forEach>
</body>
</html>